function updateDns([string] $dns = $null, [int[]] $indexs)
{
	$configs = Get-WmiObject -Class Win32_NetworkAdapterConfiguration | where ({$_.Index -in $indexs});
	echo ========index==========
	echo $indexs
	echo $configs
	foreach ($config in $configs) {
		$config.SetDNSServerSearchOrder($dns)
	}
}
Export-ModuleMember -Function updateDns